/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-24 16:27:59
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-24 16:29:55
 */
import 'package:flutter/material.dart';

class NoticeItem extends StatelessWidget {
  const NoticeItem({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) => Padding(
        padding: const EdgeInsets.symmetric(vertical: 16),
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            CircleAvatar(
              radius: 16,
            ),
            Expanded(
              flex: 12,
              child: Padding(
                padding: const EdgeInsets.fromLTRB(8.0, 0, 8, 0),
                child: Text.rich(
                  TextSpan(
                    children: [
                      TextSpan(
                          text: "Dreamwalker",
                          style: TextStyle(
                              fontSize: 13, fontWeight: FontWeight.bold)),
                      TextSpan(
                          text:
                              " scheduled \"[Live] Flutter Light talking\" for"
                              "Sunday, February 21 at 12:00 am",
                          style: TextStyle(
                            fontSize: 13,
                          ))
                    ],
                  ),
                ),
              ),
            ),
            Expanded(
              flex: 2,
              child: Align(
                alignment: Alignment.topRight,
                child: Text(
                  "5h ago",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
          ],
        ),
      );
}
